/*
 * Copyright (c) 2022, tyustli
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-02-08     tyustli      first implementation
 */

#include <stdio.h>
#include <math.h>

/*
 1 1 2 3 5 8 13 21
*/
static int fibonacci(int value)
{
    if (value == 1 || value == 2)
        return 1;
    else
        return fibonacci(value - 1) + fibonacci(value - 2);
}

int main(int argc, char **argv)
{

    printf("%d \r\n", fibonacci(6));

    return 0;
}

/******************** end of file **********************/
